﻿@using Shp.Web.Controllers;

@{
    ViewBag.Title = "External";
    Layout = "~/Views/Shared/_Layout.ForMenu.cshtml";
}

<div class="clearfix">
@Html.MvcContrib().Menu(settings => {
    settings.RootMenuItemsClass = "sf-root";
    /* sf-vertical class is required for vertical menuing */
    settings.RootMenuContainerClass = "sf-menu sf-vertical";
}).Items(menu => {
    menu.Action<HomeController>(c => c.Index(), "Home");
    menu.Link("Search Tools").Items(sub => {
        sub.Link("Google", "http://www.google.com").Target("_blank");
        sub.Link("Bing", "http://www.bing.com").Target("_blank");
        sub.Link("Yahoo", "http://www.yahoo.com/").Target("_blank");
        sub.Link("DogPile", "http://www.dogpile.com/").Target("_blank");
        sub.Link("Ask", "http://www.ask.com/").Target("_blank");        
    });
    menu.Link("Sports").Items(sub => {
        sub.Link("Football").Items(ssub => {
            ssub.Link("ESPN NFL", "http://espn.go.com/nfl/").Target("_blank");
            ssub.Link("NCAA Football", "http://www.ncaa.com/sports/football/fcs").Target("_blank");
            ssub.Link("ESPN NCAA Football", "http://espn.go.com/college-football/").Target("_blank");
            ssub.Link("FSU Football", "http://www.seminoles.com/sports/m-footbl/fsu-m-footbl-body.html").Target("_blank");
        });
        sub.Link("Baseball").Items(ssub => {
            ssub.Link("ESPN MLB", "http://espn.go.com/mlb/").Target("_blank");
            ssub.Link("NCAA Baseball", "http://www.ncaa.com/sports/baseball/d1").Target("_blank");
            ssub.Link("ESPN NCAA Baseball", "http://search.espn.go.com/college-baseball/").Target("_blank");
        });
        sub.Link("Basketball").Items(ssub => {
            ssub.Link("ESPN NBA", "http://espn.go.com/nba/").Target("_blank");
            ssub.Link("NCAA Football", "http://www.ncaa.com/sports/basketball-men/d1").Target("_blank");
            ssub.Link("ESPN NCAA Basketball", "http://espn.go.com/mens-college-basketball/").Target("_blank");
        });
        sub.Link("College").Items(ssub => {
            ssub.Link("NCAA Sports", "http://www.ncaa.com/").Target("_blank");
            ssub.Link("ESPN College Sports", "http://espn.go.com/college-sports/").Target("_blank");
            ssub.Link("ESPN NCAA Football", "http://espn.go.com/college-football/").Target("_blank");
            ssub.Link("ESPN NCAA Baseball", "http://search.espn.go.com/college-baseball/").Target("_blank");
            ssub.Link("ESPN NCAA Basketball", "http://espn.go.com/mens-college-basketball/").Target("_blank");
            ssub.Link("FSU Football", "http://www.seminoles.com/sports/m-footbl/fsu-m-footbl-body.html").Target("_blank");
        });
        sub.Link("Professional").Items(ssub => {
            ssub.Link("ESPN NFL", "http://espn.go.com/nfl/").Target("_blank");
            ssub.Link("ESPN MLB", "http://espn.go.com/mlb/").Target("_blank");
            ssub.Link("ESPN NBA", "http://espn.go.com/nba/").Target("_blank");
        });
    });
    menu.Link("News").Items(sub => {
        sub.Link("Fox News", "http://www.foxnews.com/").Target("_blank");
        sub.Link("MSNBC", "http://www.msnbc.msn.com/").Target("_blank");
        sub.Link("CNN", "http://www.cnn.com").Target("_blank");
    });
    menu.Link("Sale Items").Items(sub => {
        sub.Content(
            @:@Html.Partial("_megamenu.porsche")
        );
        // class sf-shadow-off removes shadowing
    }).ListAttributes(style => "width: 450px;", @class => "sf-shadow-off");    

    menu.Action<MenuController>(c => c.Index(), "Menu Home");
})
</div>
<script type="text/javascript">
    $(function () {
        // animation options are necessary to avoid IE animation opacity bleeding - caused by IE filtering
        var animationOptions = ($.support.opacity) ? { opacity: 'show', height: 'show'} : { height: 'show' };
        $('ul.sf-menu').superfish({
            hoverClass: 'sfHover',
            delay: 250,
            animation: animationOptions,
            speed: 'fast',
            autoArrows: true,
            dropShadows: true,
            disableHI: true
        });
    });
</script>

@section Head{
    <link href="@Url.Content("~/Content/css/superfish.mc.black.css")" rel="stylesheet" type="text/css" />
    @*add the required vertical stylesheet*@
    <link href="@Url.Content("~/Content/css/superfish.mc.vertical.core.css")" rel="stylesheet" type="text/css" />
    <style type="text/css">            
        body {margin: 10px;}
        .sf-menu { font-size: 12px;}
    </style>
}